package com.shujia

object Demo17Implicit02 {
  def main(args: Array[String]): Unit = {
    // 2、隐式转换变量

    def addSuffix(bigdata: String)(implicit suffix: String): String = {
      bigdata + "-" + suffix
    }
    implicit val defaultSuffix:String = "默认的后缀"

    println(addSuffix("Hadoop")("大象"))
    println(addSuffix("Hive")("蜂巢"))
    println(addSuffix("Spark")("火花"))
    println(addSuffix("HBase"))

  }

}
